package com.ruiysoft.controller.statement.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

/**
 * StatementBalanceVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2018-12-02T10:40:23.351+08:00")

public class StatementBalanceVo   {
  @JsonProperty("balance")
  private String balance = null;

  @JsonProperty("withdrawable")
  private String withdrawable = null;

  public StatementBalanceVo balance(String balance) {
    this.balance = balance;
    return this;
  }

  /**
   * 余额
   * @return balance
  **/
  @ApiModelProperty(example = "1", value = "余额")


  public String getBalance() {
    return balance;
  }

  public void setBalance(String balance) {
    this.balance = balance;
  }

  public StatementBalanceVo withdrawable(String withdrawable) {
    this.withdrawable = withdrawable;
    return this;
  }

  /**
   * 可提现金额
   * @return withdrawable
  **/
  @ApiModelProperty(example = "1", value = "可提现金额")


  public String getWithdrawable() {
    return withdrawable;
  }

  public void setWithdrawable(String withdrawable) {
    this.withdrawable = withdrawable;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    StatementBalanceVo statementBalanceVo = (StatementBalanceVo) o;
    return Objects.equals(this.balance, statementBalanceVo.balance) &&
        Objects.equals(this.withdrawable, statementBalanceVo.withdrawable);
  }

  @Override
  public int hashCode() {
    return Objects.hash(balance, withdrawable);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class StatementBalanceVo {\n");

    sb.append("    balance: ").append(toIndentedString(balance)).append("\n");
    sb.append("    withdrawable: ").append(toIndentedString(withdrawable)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

